package com.tracker
import grails.converters.JSON

class RequestController {
	 RequestService requestService
	
	def getlist={
		println("RequestController test")
		println(params)
		render requestService.getlist(params) as JSON		
	}
	
	def getelement={
		println("RequestController getelement test")
		println(params)
		render requestService.getelement(params) as JSON
	}
	
	def deleteElement={
		println(params)
		render requestService.deleteElement(params) as JSON		
	}
	def editElement={
		println(params)
		render requestService.editElement(params) as JSON
	}	
	def addElement={
		println(params)
		render requestService.addElement(params) as JSON
	}
	
   // def index() { }
}
